<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>移动translate</title>
    <style>
        /* 移动盒子的位置：定位 盒子的外边距 2D转换移动 */
        div{
            width: 100px;
            height: 100px;
            background-color: pink;
            transform: translate(100px,100px);
        }
        div:last-child{
            width: 200px;
            height: 200px;
            background-color: lightblue;
            transform: translate(150px,50px);
        }
    </style>
</head>
<body>
    <div></div>
    <div></div>
    
</body>
</html>